<template>
  <div class="templatefunc">
    <div class="searchbox">
      <input type="text" placeholder="输入关键词,按enter键搜索">
    </div>
    <div class="templatecont">
      <div class="templatetype">
        <a class="active" href="#">推荐模板</a>
        <a href="#">我的收藏</a>
      </div>
      <div class="tempwrap">
        <ul>
          <li class="popular like"> <i></i><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          <li><em></em></li>
          
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
    
</script>

<style scoped>
.templatefunc{position: fixed;width:330px;height: 100%; background: #fff;z-index: 999}
.searchbox{width: 280px;height: 40px;background: #f3f3f3;margin: 15px auto;border-radius: 20px;overflow: hidden;}
.searchbox input{display: block; border: 0;margin: 0;padding: 0;height: 40px;line-height: 40px;width: 250px;padding-left: 50px;background: url(../assets/images/searchicon.png) no-repeat 20px center #f3f3f3;color: #bdbdbd;font-size: 13px;}
.templatecont .templatetype{width: 140px;margin: 15px auto;overflow: hidden;border-radius: 5px;}
.templatecont .templatetype a{float: left;width:70px;height:30px;line-height: 30px; font-size: 14px;color: #696969;background: #f3f3f3;text-align: center}
.templatecont .templatetype a:hover,.templatecont .templatetype a.active{color: #fff;background: #262c2b;}
.templatecont .tempwrap{height: 770px;width: 325px;overflow-y: auto;margin: 10px auto 0;}
.templatecont .tempwrap li{position: relative; float: left;width: 144px;height: 256px;margin: 8px;background: #cfc;box-shadow: 0 1px 10px 0 rgba(55, 55, 55, .3)}
.templatecont .tempwrap li.popular i{position: absolute;display: block; width: 22px;height: 26px;top: -4px;right: 5px; background: url(../assets/images/popularicon.png) no-repeat center;}
.templatecont .tempwrap li:hover em{position: absolute;display: block; width: 24px;height: 24px;bottom: 5px;left: 5px; background: url(../assets/images/like.png) no-repeat center;cursor: pointer;}
.templatecont .tempwrap li.like:hover em{position: absolute;display: block; width: 24px;height: 24px;bottom: 5px;left: 5px; background: url(../assets/images/like_on.png) no-repeat center;}
</style>

